﻿#ifndef EXPORTGIFDIALOG_H
#define EXPORTGIFDIALOG_H

#include <QDialog>

namespace Ui {
class ExportGifDialog;
}

class QColorDialog;
class ExportGifDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ExportGifDialog(QWidget *parent = nullptr);
    ~ExportGifDialog();
    void setDefautlSize(const QSize& size);
public:
    QSize m_exportSize;
    bool m_allowAlpha{false};
    QColor m_exportBgColor = Qt::white;
    QString m_exportFile;
private slots:
    void on_checkBox_keep_scale_stateChanged(int state);
    void on_spinBox_w_valueChanged(int w);
    void on_spinBox_h_valueChanged(int h);
    void on_pushButton_reset_clicked();
    void on_pushButton_export_clicked();
private:
    Ui::ExportGifDialog *ui;
    QColorDialog* m_dlgColor{};
    QSize m_defaultSize;
    double m_scaleWH = 0;
};

#endif // EXPORTGIFDIALOG_H
